<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/9/5
  Time: 10:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%--引入jstl--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <script src="${pageContext.request.contextPath}/dist/js/jquery-3.1.1.min.js"></script>
    <script>
        var path='${pageContext.request.contextPath}';
        var testA='';
        var testB='';
    </script>
    <script  src="${pageContext.request.contextPath}/dist/js/aaa.js"></script>
    <script  src="${pageContext.request.contextPath}/dist/js/bbb.js"></script>
</head>
<body>
    testA:<input type="text" name="testA" id="testA">
    testB:<input type="text" name="testB" id="testB">
    <button id="bu1">搜索</button>&nbsp;
    <button id="bu2">加10条数据</button>
<div id="ssss">
</div>
    <button id="la" >上一页</button>&nbsp;
    <button id="na" >下一页</button>
    <div id="www">
    </div>
<script>
    $('#bu1').click(function () {
       aaa({
           testA:$('#testA').val(),
           testB:$('#testB').val()
       })
    });
    $('#la').click(function () {
        aaa({
            testA:$('#testA').val(),
            testB:$('#testB').val(),
            page:parseInt($('#hd1').val())-1
        })
    });
    $('#na').click(function () {
        aaa({
            testA:$('#testA').val(),
            testB:$('#testB').val(),
            page:parseInt($('#hd1').val())+1
        })
    });
    $('#bu2').click(function () {
        bbb();
    })

</script>
</body>
</html>
